package xjtu.se.articlecommunity.user.publisharticle.dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import xjtu.se.articlecommunity.user.publisharticle.dto.PublishDto;

public interface PublishDao {
    @Select("select max(convert(a_id,signed)) from t_article")
    Integer findMaxID(PublishDto dto);

    @Insert("insert into t_article(a_id, u_id, a_title, a_html) values(#{a_id}, #{u_id}, #{a_title}, #{a_html})")
    void insertArticle(PublishDto dto);
}
